package cn.ywang;

import cn.ywang.client.RpcClientProxy;
import cn.ywang.service.IHello;

/**
 * Hello world!
 */
public class ClientApp {
	public static void main(String[] args) {
		try {
			RpcClientProxy proxy = new RpcClientProxy();
			// 代理对象
			IHello hello = proxy.clientProxy(IHello.class, "localhost", 8888);
			System.out.println(hello.sayHello("wangyaqi"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
